import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EPrictUnit
    
    export  class EPrictUnit
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): EPrictUnit
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 32) 
            {
                throw new MarshalException();
            }
            return EPrictUnit.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EPrictUnit
        {
            return new EPrictUnit(arg1);
        }

        public static /* const */_EPriceUnitMerit: int=17;

        public static /* const */_EPriceUnitCoin: int=0;

        public static /* const */_EPriceUnitCoinBind: int=1;

        public static /* const */_EPriceUnitGold: int=2;

        public static /* const */_EPriceUnitGoldBind: int=3;

        public static /* const */_EPriceUnitHonour: int=4;

        public static /* const */_EPriceUnitArena: int=5;

        public static /* const */_EPriceUnitPrestige: int=6;

        public static /* const */_EPriceUnitPoint: int=7;

        public static /* const */_EPriceUnitCopyScore: int=8;

        public static /* const */_EPriceUnitGuildContribution: int=9;

        public static /* const */_EPriceUnitNimbus: int=10;

        public static /* const */_EPriceUnitAccumulation: int=11;

        public static /* const */_EPriceUnitInterHonour: int=12;

        public static /* const */_EPriceUnitWuxingEnergyValue: int=13;

        public static /* const */_EPriceUnitNewEnergy: int=14;

        public static /* const */_EPriceUnitPetCoin: int=15;

        public static /* const */_EPriceUnitBrokenSoul: int=18;

        public static /* const */_EPriceUnitIntegralOne: int=19;

        public static /* const */_EPriceUnitIntegralTwo: int=20;

        public static /* const */_EPriceUnitWarehouseCoin: int=21;

        public static /* const */_EPriceUnitWarehouseGold: int=22;

        public static /* const */_EPriceUnitCountryContribution: int=23;

        public static /* const */_EPriceUnitRobFlagHonour: int=24;

        public static /* const */_EPriceUnitFireRage: int=25;

        public static /* const */_EPriceUnitRobIslandCoin: int=26;

        public static /* const */_EPriceUnitSpiritCoin: int=27;

        public static /* const */_EPriceUnitLadder: int=28;

        public static /* const */_EPriceUnitArenaCrossCoin: int=29;

        public static /* const */_EPriceUnitDominion: int=30;

        public static /* const */_EPriceUnitIntegralThree: int=31;

        public static /* const */_EPriceUnitMagicStone: int=16;

        public /* var */__value: int;
    }
